# -*- coding: utf-8 -*-
def fib_table(n) :
    
    lookup = []
    for i in range (1,n+1) :
        if i <= 2 :
            lookup.append(1)
        else :
            lookup.append(lookup[-1]+lookup[-2])
            
    return lookup[-1]
        
print(fib_table(3))